<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String appPath = request.getContextPath();
%>
<script type="text/javascript" src="${staticPath}/js/app/pay/pay.js"></script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> 
<body ontouchstart>
	<input type="hidden" value="${code}" id="code" />
	<input type="hidden" value="${key}" id="key" />
	<header class="contHeader">
		<div class="contOHeader" style="z-index:1000;">
			<h1>支付订单</h1>
			<div class="contOHeadBack">
				<a href="javascript:history.go(-1);"><img
					src="${staticPath}/images/back2.png"></a>
			</div>

		</div>
	</header>
	<div class="zftx">
		<p>总金额：		
			￥
			<fmt:formatNumber value="${money/100}" pattern="#,###.##" />
		</p>
		<c:if test="${express!=null}">
		<p>其中运费：
			￥
			<fmt:formatNumber value="${express/100}" pattern="#,###.##" />
		</p>
		</c:if>
	</div>
	<div class="bd">
		<div class="weui_cells_title" style="color: #000;">支付方式：</div>
		<div class="weui_cells weui_cells_access">
			<c:if test="${!weixin || androidapp}">
				<a class="weui_cell" href="javascript:zhifubao();">
					<div class="weui_cell_hd">
						<img src="${staticPath}/images/zfb.png" alt=""
							style="width: 40px; height: 40px; margin-right: 5px; display: block">
					</div>
					<div class="weui_cell_bd weui_cell_primary">
						<p>支付宝支付</p>
					</div>
					<div class="weui_cell_ft"></div>
				</a>
			</c:if>
			<c:if test="${weixin || androidapp}">
				<a class="weui_cell" href="javascript:weixin();">
					<div class="weui_cell_hd">
						<img src="${staticPath}/images/wx.png" alt=""
							style="width: 40px; height: 40px; margin-right: 5px; display: block">
					</div>
					<div class="weui_cell_bd weui_cell_primary">
						<p>微信支付</p>
					</div>
					<div class="weui_cell_ft"></div>

				</a>
			</c:if>
			<c:if test="false">
				<a class="weui_cell" href="javascript:;">
					<div class="weui_cell_hd">
						<img src="${staticPath}/images/yl.png" alt=""
							style="width: 40px; height: 40px; margin-right: 5px; display: block">
					</div>
					<div class="weui_cell_bd weui_cell_primary">
						<p>银联支付</p>
					</div>
					<div class="weui_cell_ft"></div>
				</a>
			</c:if>
			<c:if test="${money<=account.purse && purse}">
				<a href="javascript:balance();" id='show-prompt' class="weui_cell">
					<div class="weui_cell_hd">
						<img src="${staticPath}/images/ye.png" alt=""
							style="width: 40px; height: 40px; margin-right: 5px; display: block">
					</div>
					<div class="weui_cell_bd weui_cell_primary">
						<p>
							余额支付(余额:
							<fmt:formatNumber value="${account.purse/100}" pattern="#,###.##" />
							元)
						</p>
					</div>
					<div class="weui_cell_ft"></div>
				</a>
			</c:if>
		</div>
		<c:if test="${upgrade}">
			<div class="weui_btn_area">
				<a href="javascript:cancelOrder();" id='show-toast'
					class="weui_btn weui_btn_primary">取消订单</a>
			</div>
		</c:if>
		<div id="zhifubao"></div>
	</div>

</body>


